﻿package com.syxp.pda.entity.base;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.syxp.pda.entity.system.Role;

/**
 * 
 * version: 1.0
 * 
 * date: 2011.07.12
 * 
 * author mengqingxin
 *
 */
public class Department {

private int departmentID ; //部门编号
	
	private String departmentCode ;//部门编码
	
	private String parentID ;
	
	private String depName ;//部门名称
	
	private String depTel ;//部门名称
	
	private String depOrder ;//部门顺序号
	
	private String remarks ;//备注

	private Set<Department> departments ;
	
	//EL_Department  （部门表）与EL_User(用户表)：一对多
	private Set<User> users ;
	
	//EL_Department  （部门表）与EL_ClassDuty(班次表)：一对多
	private Set<ClassDuty> classDutys;
	
	//EL_Department  （部门表）与EL_BaseDutyRule：一对一
	private BaseDutyRule baseDutyRule ;
	
	private Set<Duty> dutys ;
	
	private List<DutyRule> dutyRules ;
	
	public List<DutyRule> getDutyRules() {
		return dutyRules;
	}

	public void setDutyRules(List<DutyRule> dutyRules) {
		this.dutyRules = dutyRules;
	}

	public Set<Duty> getDutys() {
		return dutys;
	}

	public void setDutys(Set<Duty> dutys) {
		this.dutys = dutys;
	}

//	//EL_Role（权限表）与El_Department（部门表）： 多对多（通过EL_Role_Depart表体现出来）
//	private Set<Role> roles;
//	
//	public Set<Role> getRoles() {
//		return roles;
//	}
//
//	public void setRoles(Set<Role> roles) {
//		this.roles = roles;
//	}

	public String getParentID() {
		return parentID;
	}

	public void setParentID(String parentID) {
		this.parentID = parentID;
	}

	public BaseDutyRule getBaseDutyRule() {
		return baseDutyRule;
	}

	public void setBaseDutyRule(BaseDutyRule baseDutyRule) {
		this.baseDutyRule = baseDutyRule;
	}

	public Set<ClassDuty> getClassDutys() {
		return classDutys;
	}

	public void setClassDutys(Set<ClassDuty> classDutys) {
		this.classDutys = classDutys;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	public int getDepartmentID() {
		return departmentID;
	}

	public void setDepartmentID(int departmentID) {
		this.departmentID = departmentID;
	}

	public String getDepartmentCode() {
		return departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public String getDepName() {
		return depName;
	}

	public void setDepName(String depName) {
		this.depName = depName;
	}

	public String getDepTel() {
		return depTel;
	}

	public void setDepTel(String depTel) {
		this.depTel = depTel;
	}

	public String getDepOrder() {
		return depOrder;
	}

	public void setDepOrder(String depOrder) {
		this.depOrder = depOrder;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Set<Department> getDepartments() {
		return departments;
	}

	public void setDepartments(Set<Department> departments) {
		this.departments = departments;
	}
	
	
}
